package com.telecom.factory;

import java.util.Properties;
import java.util.ResourceBundle;

public class Test {
    public static void main(String[] args) {
        //i18n
        ResourceBundle bundle = ResourceBundle.getBundle("fruit");
        String name = bundle.getString("fruit");
        //多态
        Fruit fruit = Factory.getFruit(name); //new Orange(); //class
        fruit.plant();
        fruit.grow();
        fruit.harvest();
    }
}
